Game Programming Gems 5

Accompanying CD-ROM

Kim Pallister, Editor

Mark DeLoura, Series Editor

 

 

Here are links to sample code, demos, and videos located on the CD.

 

Be sure to read the legal information in README.RTF.

 

 

 

INDEX

 

Section 1: General Programming

 

1.1 Context-Sensitive HUDs for Editors - Adam Martin, Grex Games

 

1.2 Parsing Text Data in Games - Aurelio Reis

 

1.3 Component Based Object Management - Bjarne Rene, Circle Studio, ltd

 

1.4 Using Templates for Reflection in C++ - Domenic Filion, DC Studios

 

1.5 Sphere Trees for Speedy BSPs - Dominic Filion, DC Studios

 

1.6 Improved Frustum Culling - Frank Puig Placeres

 

1.7 Generic Pager - Ignacio Incera Cruz

 

1.8 Large-Scale Stack-Based State Machines - James Boer

 

1.9 CSG Construction Using BSP Trees - Octavian Chincisan

 

1.10 Building Lua into Games - Matthew Harmon, eV Interactive Corporation

 

1.11 Improving Freelists with Policy Based Design - Nathan Mefford

 

1.12 A Real-time Remote Debug Message Logger - Patrick Duquette

 

1.13 A Transparent Class Saving and Loading Trick - Patrick Meehan

 

1.14 An Effective Cache-Oblivious Implementation of the ABT Tree

- Sebastien Schertenleib, Swiss Federal Institute of Technology

 

1.15 Visual Design of State Machines - Scott Jacobs

 

1.16 A Generic Component Library - Warrick Buchanan, Argonaut

 

1.17 Choose Your Path – A Menu System - Wendy Jones

 

 

Section 2: Mathematics

 

2.3 Spline-Based Time Control for Animation

- James M Van Verth, Red Storm Entertainment

 

2.4 Faster Quaternion Interpolation Using Approximations - Andy Thomason

 

2.6 Oblique View Frustums for Mirrors and Portals - Eric Lengyel

 

Section 3: Artificial Intelligence

 

3.2 Fast Target Ranking Using an Artificial Potential Field

- Markus Breyer, Factor 5

 

3.8 Advanced Path-Finding with Minimal Re-Planning Cost: Dynamic A* (D*)

- Marco Tombesi

 

Section 4: Physics

 

4.1 Back of the Envelope Aerodynamics for Game Physics

- Graham Rhodes, Applied Research Associates

 

4.2 Dyamic Grass Simulation and Other Natural Effects

- Rishi Ramraj, University of Waterloo

 

4.4 Practical Animation of Soft Bodies for Game Development

– Maciej Matyka, University of Wroclaw

 

4.5 Adding Life to Ragdoll Simulation Using Feedback Control Systems

– Michael Mande, Apple Computer

 

4.6 Designing a Prescripted Physics System - Daniel Higgins

 

4.8 Realistic Camera Movement in a 3D Car Simulator

- Barnabas Aszodi, Szobolcs Czuczor,

Budapest University of Technology and Economics

 

Section 5: Graphics

 

 

5.1 Realistic Cloud Rendering on Modern GPUs - Jean-Francois Dube, Ubisoft

 

5.3 Widgets: Rendering Fast and Persistent Foliage - Martin Brownlow

 

5.4 Dimensional Impostors for Realistic Trees and Forests – Gabor Szijarto

 

5.5 Gridless Controllable Fire

- Neeharika Adabala, Charles E Hughes, University of Central Florida

 

5.6 Powerful Explosion Effects Using Billboard Particles

- Steve Rabin Nintendo of America Inc.

 

5.7 A Simple Method for Rendering Gemstones

- Thorsten Scheuermann, ATI Research

 

5.8 Volumetric Post-Processing - Dominic Filion, DC Studios

 

5.9 Procedural Level Generation

- Timothy Roden and Ian Parberry, University of North Texas

 

 

Section 6: Networking and Multi-player

 

6.4 Fast and Efficient Implementation of a Remote Procedure Calls System

- Bae Hyun-jik

 

6.5 Overcoming Network Address Translation in Peer-to-Peer Communications

- Jon Watte

 

6.7 Safe Random Number Systems - Shekhar Dhupelia

 

 

Section 7: Audio

 

7.1 MultiThreaded Audio Programming Techniques – James Boer

 

7.3 Using 3D Surfaces as Audio Emitters - Sami Hamlaoui

 

7.4 Fast Environmental Reverb Based on Feedback Delay – Christian Schüler

 

7.5 Introduction to Single-Speaker Speech Recognition - Julien Hamaide

 


 

1.1 Context-Sensitive HUDs for Editors

Adam Martin, Grex Games

 

 

Adam’s sample application can be found here.

 

The source can be found \\Section1-Gen_Programming\1.01-ContextSensitiveHUDs-Martin

 

1.2 Parsing Text Data in Games

Aurelio Reis

 

 

Auralio’s sample application can be found here.

 

The source code project files can be found in \\Section1-Gen_Programming\1.02-ParsingTextData-Reis.

 

1.3 Component Based Object Management

Bjarne Rene, Circle Studio, ltd

 

Bjarne’s sample application, “GDCQuest” can be found here.

 

The source code project files can be found in \\Section1-Gen_Programming\1.03-ComponentBasedObjectMgmt-Rene

 

 

1.4 Using Templates for Reflection in C++

Domenic Filion, DC Studios

 

\\Section1-Gen_Programming\1.04-UsingTemplatesforReflectioninCpp-Filion

 

The source code and executable for Domenic’s application can be found in: \\Section1-Gen_Programming\1.04-UsingTemplatesforReflectioninCpp-Filion

 

The project requires use of the Xtreme Toolkit Pro by CodeJock Software. An evaluation version is provided in the same directory.

 

 

1.5 Sphere Trees for Speedy BSPs

Dominic Filion, DC Studios

 

 

The executable for Domenic’s demo can be found here.

 

The source code project files be found in \\Section1-Gen_Programming\1.05-SphereTreesforSpeedyBSPs-Filion

 

1.6 Improved Frustum Culling

Frank Puig Placeres

 

 

The executable for Frank’s demo can be found here.

 

The source code project files be found in \\Section1-Gen_Programming\1.06-ImprovedFrustumCulling-Placeres

 

 

1.7 Generic Pager

Ignacio Incera Cruz

 

 

The executable for Ignacio’s demo can be found here.

 

The source code project files be found in \\Section1-Gen_Programming\1.07-GenericPager-Cruz

 

1.8 Large-Scale Stack-Based State Machines

James Boer

 

The source and header files discussed in James’ gem can be found in \\Section1-Gen_Programming\1.08-LargeScaleStackBasedStateMachine-Boer

 

1.9 CSG Construction Using BSP Trees

Octavian Chincisan

 

 

The executable for Octavian’s demo can be found here.

 

The source code project files be found in \\Section1-Gen_Programming\1.09-CSGUsingBSP-Chincisan

 

1.10 Building Lua into Games

Matthew Harmon, eV Interactive Corporation

 

The executable for Matthew’s demo can be found (and should be run from) \\Section1-Gen_Programming\1.10-BuldingLuaIntoGames-Harmon\Bin

 

The source code project files be found in \\Section1-Gen_Programming\1.10-BuldingLuaIntoGames-Harmon\LuaManager

 

1.11 Improving Freelists with Policy Based Design

Nathan Mefford

\\Section1-Gen_Programming\

 

The executable for Nathan’s demo can be found in \\Section1-Gen_Programming\1.11-ImprovingFreelistsWithPolicyBasedDesign-Mefford

 

You will need to pipe the output to a file, or look at a sample of the output here.

 

The source code project files be found in \\Section1-Gen_Programming\ 1.11-ImprovingFreelistsWithPolicyBasedDesign-Mefford

 

1.12 A Real-time Remote Debug Message Logger

Patrick Duquette, Microids Canada Inc.

 

The solution files for this project can be found in the following directories:

\\Section1-Gen_Programming\1.12-RemoteDebugConsole-Duquette\RemoteLoggerConsole

\\Section1-Gen_Programming\1.12-RemoteDebugConsole-Duquette\RemoteLoggerGameModule

\\Section1-Gen_Programming\1.12-RemoteDebugConsole-Duquette\TestProgram

 

1.13 A Transparent Class Saving and Loading Trick

Patrick Meehan

 

The solution files for Patrick’s gem can be found in \\Section1-Gen_Programming\1.13-TransparentClassSavingandLoadingTrick-Meehan

 

1.14 An Effective Cache-Oblivious Implementation of the ABT Tree

Sebastien Schertenleib, Swiss Federal Institute of Technology, VR Lab

 

The executable for Sebastien’s demo can be found here.

 

The source code project files be found in \\Section1-Gen_Programming\1.14-CacheObliviousImplementationoftheABTTree-Schertenleib

 

1.15 Visual Design of State Machines

Scott Jacobs

 

The solution files for Scott’s gem can be found in \\Section1-Gen_Programming\1.15-VisualDesignOfStateMachines-Jacobs

 

1.16 A Generic Component Library

Warrick Buchanan, Argonaut

The solution files for Patrick’s gem can be found in Section1-Gen_Programming\1.16-ComponentLibraryFramework-Buchanan

 

1.17 Choose Your Path – A Menu System

Wendy Jones

 

 

The executable for Wendy’s demo, as well as source code project files be found in \\Section1-Gen_Programming\1.17-ChooseYourPath_AMenuingSystem-Jones

 

Section 2: Mathematics

 

 

2.3 Spline-Based Time Control for Animation

James M Van Verth, Red Storm Entertainment

 

The source files accompanying James’ gem can be found in \\Section2-Mathematics\2.03-SplineBasedControlForAnimation-VanVerth

 

2.4 Faster Quaternion Interpolation Using Approximations

Andy Thomason

 

The solution files for Andy’s gem can be found in \\Section2-Mathematics\2.04-FastQuaternionBlendingWithoutTrig-Thomason

 

The executable for his gem can be found here.

 

2.6 Oblique View Frustums for Mirrors and Portals

Eric Lengyel

 

The Direct3D and OpenGL versions of Eric’s gem can be found in \\Section2-Mathematics\2.06-ObliqueViewFrustums-Lengyel

 

Section 3: Artificial Intelligence

 

3.2 Fast Target Ranking Using an Artificial Potential Field

Markus Breyer, Factor 5

 

The sample code for Markus’ gem can be found in //Section3-Artificial_Intelligence/3.02-PotentialFieldTargeter-Breyer

 

 

3.4 Implementing Practical Planning for Game AI

Jamie Cheng, Relic Entertainment

Finnegan Southey, University of Alberta

 

3.5 Optimizing a Decision Tree Query Algorithm for Multithreaded Architectures

Chuck DeSylva, Intel Corporation

 

3.6 Parallel AI Development with PVM

Michael Ramsey, 2015 Inc

 

3.7 Beyond A*

Mario Grimani, Xtreme Strategy Games

 

3.8 Advanced Path-Finding with Minimal Re-Planning Cost: Dynamic A* (D*)

Marco Tombesi

 

 

The sample code to Marco’s gem can be found in //Section3-Artificial_Intelligence/3.08-AdvancedPathFinding-Tombesi

 

The sample application can be run from here.

 

Section 4: Physics

 

4.1 Back of the Envelope Aerodynamics for Game Physics

Graham Rhodes, Applied Research Associates

 

 

Graham’s Sample code can be found in \\Section4-Physics\4.01-BackOfTheEnvelopeAerodynamics-Rhodes\

 

View his Windstorm application here. The instructions for use can be found here.

 

View his Curveball application here. The instructions for use can be found here.

 

View his Airplane application here. The instructions for use can be found here.

 

 

4.2 Dynamic Grass Simulation and Other Natural Effects

Rishi Ramraj, University of Waterloo

 

 

Rishi’s Sample code can be found in \\Section4-Physics\4.02-DyanmicGrass\

 

4.4 Practical Animation of Soft Bodies for Game Development

Maciej Matyka, University of Wroclaw

 

 

 

Maciej’s sample code can be found in \\Section4-Physics\4.04-SoftBody-Matyka

 

Two sample applications can be found in the same directory and run from there.

 

4.5 Adding Life to Ragdoll Simulation Using Feedback Control Systems

Michael Mande, Apple Computer

 

 

The sample application for this gem can be found in //Section4-Physics /4.05-ControllerDemo-Mandel/ or accessed by clicking here.

 

4.6 Designing a Prescripted Physics System

Daniel Higgins

 

The source code for this gem can be found in //Section4-Physics /4.06-PrescriptedPhysics-Higgins/

 

 

4.8 Realistic Camera Movement in a 3D Car Simulator

Barnabas Aszodi, Szobolcs Czuczor, Budapest University of Technology and Economics

 

 

 

Barnabas and Szobolcs’  sample code can be found in \\Section4-Physics\4.08-RealisticCarCamera_Aszodi

 

The sample application can be run from here. Be sure to read the README file

 

 

Section 5: Graphics

 

5.1 Realistic Cloud Rendering on Modern GPUs

Jean-Francois Dube, Ubisoft

 

 

The CD contains 3 videos of Jean-Francois’ technique, as well as an executable. The demo requires hardware that supports Shader Model 3.0 Hardware & DirectX 9.0c.

 

Video 1

Video 2

Video 3

 

 

Demo

Demo Instructions

 

5.3 Widgets: Rendering Fast and Persistent Foliage

Martin Brownlow

 

The CD contains a demo executable as well as the source code to that demo in an MS VC project.

 

Demo – Warning: This demo requires a fairly capable 3D graphics card to run.

Demo Source Code

 

5.4 Dimensional Impostors for Realistic Trees and Forests

Gabor Szijarto

 

The CD contains a sample project in \Section5-Graphics\5.04-DimensionalImpostors-Szijarto\

 

5.5 Gridless Controllable Fire

Neeharika Adabala, University of Central Florida

Charles E Hughes, University of Central Florida

 

The CD contains source code located in \Section5-Graphics\5.05-GridlessFire_Adabala. You will need to have OpenGL, GLUT, and the Nvidia SDK installed in order to build this.

 

5.6 Powerful Explosion Effects Using Billboard Particles

Steve Rabin – Nintendo of America Inc.

 

 

This CD contains a collection of videos showing components of this effect, as well as the composite final result

 

Video 1 – Just Core

Video 2 – Just Debris

Video 3 – Just Fireball

Video 4 – Just Flares

Video 5 – Just Flash

Video 6 – Just Smoke

 

Video 7 – Final Explosion 1

Video 8 – Final Explosion 1

Video 9 – Side-by-side comparison

 

5.7 A Simple Method for Rendering Gemstones

Thorsten Scheuermann, ATI Research

 

The CD includes a video of Thorsten’s gem, here.

 

5.8 Volumetric Post-Processing

Dominic Filion, DC Studios

The CD contains a sample project The project can be found in \Section5-Graphics\5.08-VolumetricPostProcessing-Filion

 

5.9 Procedural Level Generation

Timothy Roden and Ian Parberry, University of North Texas

                                                           

The CD contains a sample project to procedurally create level data. The project can be found in \Section5-Graphics\5.09-ProceduralLevelGeneration-Roden

 

Section 6: Networking and Multi-player

 

6.4 Fast and Efficient Implementation of a Remote Procedure Calls System

Bae Hyun-jik

 

Hyun-jik’s gem contains a number of different samples, with source, executable, and readme files included. They can be found in the sub-directories under \\Section6-Audio\Section6-6.04-FastRPCforOnlineGames-Bae

 

6.5 Overcoming Network Address Translation in Peer-to-Peer Communications

Jon Watte

 

Sample code for Jon’s gem can be found in \\Section6-Networking\6.05-OvercomingNetworkAddressTranslation-Watte

6.7 Safe Random Number Systems

Shekhar Dhupelia

 

Sample code for Shekhar’s random number gem can be found in \\Section6-Networking\6.07-SafeRandomNumberSystems-Dhupelia

 

The demo can be here.

 

Section 7: Audio

 

7.1 MultiThreaded Audio Programming Techniques

            James Boer

 

Sample code for James MultiThreaded Audio gem can be found in \\Section7-Audio\7.01-MultiThreadedAudio-Boer

 

The demo can be here.

 

7.3 Using 3D Surfaces as Audio Emitters

Sami Hamlaoui

 

 

The source code project files be found in

\\Section7-Audio\7.03-Using3DSurfacesasAudioEmitters-Hamlaoui

 

The demo can be found in the same directory, and run from there.

 

7.4 Fast Environmental Reverb Based on Feedback Delay Networks

Christian Schüler

 

 

The source code project files be found in

\\Section7-Audio\7.04-FastEnvironmentalReverb-Schuler

 

A demo built from the source code is included as well.

 

7.5 Introduction to Single-Speaker Speech Recognition

Julien Hamaide

 

The source code project files be found in \\Section7-Audio\7.05-SingleSpeakerSpeechRecognition-Hamaide

 

A demo built from the source code is included as well, but must be run from the command line, as explained in the readme.